import { http } from '@/utils/http'

// 首页轮播图
export const getHomeBannerAPI = (distributionSite = 1) => {
  // 1为首页轮播图，2为商品分类页轮播图
  return http({
    method: 'GET',
    url: '/home/banner',
    data: {
      distributionSite,
    },
  })
}

// 首页前台分类数据
export const getHomeCategoryAPI = () => {
  return http({
    method: 'GET',
    url: '/home/category/mutli',
  })
}

// 热门推荐
export const getHotAPI = () => {
  return http({
    method: 'GET',
    url: '/home/hot/mutli',
  })
}

// 猜你喜欢
export const getGoodsGuessLikeAPI = (data) => {
  return http({
    method: 'GET',
    url: '/home/goods/guessLike',
    data,
  })
}
